<?php
namespace Health\Models;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{

    protected $table = 'goods_category';

    protected $primaryKey = 'id';

    public $timestamps = true;

    protected $guarded = array();

    public static function getCategory(){
        return self::where('status',1)->orderBy('sort','desc')->get();
    }
}

